<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var now = new Date();
			now.getTime();		//时间戳
			console.log(new Date(1647140527166));
			//时间戳转为时间
			
			
			var now1 = new Date(1647140527166);
			now1.toLocaleString();//调用是一个方法，不是一个属性
			//ƒ toLocaleString() { [native code] }
			now1.toLocaleString();
			//'2022/3/13 11:02:07'
		</script>
	</body>
</html>
